import User from './User.js';

class UserService{
	
	constructor(){
		this.user = new User({id:1001,firstName:"Toni",status:1});
	}

	getUserById(userId){
			return  this.user;
	}


	setUserStateUnlogin(userId){
		this.user.status= 1;
	}
	setUserStateLogined(userId){
		this.user.status= 2;
	}
	
	getUserList(){
		return [
 			new User({id:1001,firstName:"Toni"}),
			new User({id:1002,firstName:"Jom"}),
			new User({id:1003,firstName:"Honr"}),
		];
	}

}
export default UserService;